<?php

class Gallery_Block_Categories extends Kernel_Block 
{
    
    /**
    * Start block categories depending on application dummy
    * 
    */
    public function getData() 
    {
        switch(true) 
        {
            case Application::dummy() instanceof Kernel_Application_Frontend : 
                return Kernel::factory(__CLASS__, 'Frontend')->getData();
                break;
            
            case Application::dummy() instanceof Kernel_Application_Backend : 
                return Kernel::factory(__CLASS__, 'Backend')->getData();
                break;
            
            default : trigger_error('Unsupported application dummy', E_USER_ERROR);
        }
    }
    
}